package test;

import benchmark.internal.BenchmarkN;
import benchmark.objects.A;
import benchmark.objects.B;

public class FS1 {
    public static void main(String[] args) {

        BenchmarkN.alloc(4);
        B b4 = new B();
        BenchmarkN.alloc(5);
        B b5 = new B();
        BenchmarkN.alloc(6);
        B b6 = new B();

        BenchmarkN.alloc(1);
        A a1 = new A();
        a1.f = b4;
        BenchmarkN.alloc(2);
        A a2 = new A();
        a2.f = b5;
        BenchmarkN.alloc(3);
        A a3 = new A();
        a3.f = b6;

        a1 = a2;
        a1 = a3;

        BenchmarkN.test(1, a1.f);
        BenchmarkN.test(2, a2.f);
        BenchmarkN.test(3, a3.f);
    }
}
